﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace DTO
{
    public class TuyenDuongDTO
    {
        private int _id;

        public int Id
        {
            get { return _id; }
            set { _id = value; }
        }
        private string _noiDen;

        public string NoiDen
        {
            get { return _noiDen; }
            set { _noiDen = value; }
        }
        private string _noiDi;

        public string NoiDi
        {
            get { return _noiDi; }
            set { _noiDi = value; }
        }
        private int _khoangCach;

        public int KhoangCach
        {
            get { return _khoangCach; }
            set { _khoangCach = value; }
        }
        private int _soLuongXe;

        public int SoLuongXe
        {
            get { return _soLuongXe; }
            set { _soLuongXe = value; }
        }
        private string _gioBatDauChay;

        public string GioBatDauChay
        {
            get { return _gioBatDauChay; }
            set { _gioBatDauChay = value; }
        }
        private string _gioNghi;

        public string GioNghi
        {
            get { return _gioNghi; }
            set { _gioNghi = value; }
        }
        private int _loai;

        public int Loai
        {
            get { return _loai; }
            set { _loai = value; }
        }

        public static IEnumerable<SelectListItem> GetListLoaiTuyenDuong()
        {
            List<SelectListItem> ls = new List<SelectListItem>();
            SelectListItem item1 = new SelectListItem();
            item1.Value = "1";
            item1.Text = "Đường dài";
            ls.Add(item1);

            SelectListItem item2 = new SelectListItem();
            item2.Value = "2";
            item2.Text = "Trung chuyển";
            ls.Add(item2);

            IEnumerable<SelectListItem> IEnumerableTinhTrang = ls;
            return IEnumerableTinhTrang;
        }
    }
}
